home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / src / match-nshell.hqx / match / How To < prev    next >
Encoding:
Text File  |  1994-11-06  |  661 b   |  31 lines

  1. How To
  2. ======
  3.  
  4. To use this command, drop the "match" file into your nShell "bin" directory.
  5.  
  6. Description
  7. ===========
  8.  
  9. NAME
  10.  
  11. match - type matching lines to standard output
  12.  
  13. SYNOPSIS
  14.  
  15. match -p 'pattern' [file...]
  16.  
  17. DESCRIPTION
  18.  
  19. This is a grep-like command.  Patterns are specified in shell-sytle wildcards, so a pattern of:
  20.  
  21. yak - will match all lines containing "yak"
  22. foo*bar - will match lines containing "foo" followed by "bar".
  23. [a-c]oo - will match lines containing "aoo", "boo" or "coo".
  24.  
  25. NOTE: It is important to put single quotes around patterns containing wildcards, so that the shell will not match them with file names.
  26.  
  27. RETURN CODES
  28.  
  29. <0    Error
  30. 0    Success
  31.